<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<title>{% firstof forum.title forum.url %}</title>
	<link href="/static/default.css" rel="stylesheet" type="text/css">
	<script language="javascript" src="/static/default.js" type="text/javascript"></script>
	<link type="application/rss+xml" rel="alternate" title="Discussion Group" href="{{ siteroot }}rss">
</head>

<body>
<div id="tbTop">{{ log_in_out }}</div>
<table>
<tbody>
<tr>
	<td colspan="2" class="header">
		<div>
			<h1><a href="{{ siteroot }}" class="green">{% firstof forum.title forum.url %}</a></h1>
			<p>{{ forum.tagline }}</p>
		</div>
	</td>
</tr>
<tr>
	<td class="sidebar">
		{{ forum.sidebar }}
	</td>
	<td class="contents">
		<form method="get" action="http://google.com/search">
			<input type="hidden" name="IncludeBlogs" value="1">
			<input type="hidden" name="as_sitesearch" value="{{ siteurl }}">
			<div class="searchBox">
				<table border="0" cellpadding="0" cellspacing="0">
				<tbody>
					<tr>
						<td><label for="search">Search</label><br> </td>
					</tr>
					<tr>
						<td><input name="q" id="search" value="" type="text"></td>
						<td><input class="button" value="Go" type="submit">&nbsp;</td>
					</tr>
				</tbody>
				</table>
			</div>
		</form>
		<div class="topics">
		{% if not topics %}
			There are no topics. You better create one.
		{% else %}
				{% if from %}
					Topics {{ from }}-{{ to }}<br/><br/>
				{% endif %}

		{% for topic in topics %}
		  {% if topic.is_deleted %}
				<a class="deleted" href="{{ siteroot }}topic?id={{ topic.key.id }}{% if topic.ncomments %}&comments={{ topic.ncomments }}{% endif %}" title="{{ topic.msg_short }}">{{ topic.subject }}</a>
			{% else %}
				<a href="{{ siteroot }}topic?id={{ topic.key.id }}{% if topic.ncomments %}&comments={{ topic.ncomments }}{% endif %}" title="{{ topic.msg_short }}">{{ topic.subject }}</a>
			{% endif %}
			<em>{{ topic.created_by }}</em> <span>({{ topic.ncomments }} {% if forloop.first %} comment{{ topic.ncomments|pluralize }}{% endif %})</span>
			<br />
			{% if not forloop.first %}
				<div class="dateline"></div>
			{% endif %}
		{% endfor %}
		</div>
		{% endif %}
		<div class="buttons">
		<a accesskey="n" href="{{ siteroot }}post"><img src="/img/new.gif" alt="New topic" border="0" height="14" width="13"> <u>N</u>ew topic</a>
		{% if new_from %}
			<a accesskey="t" href="{{ siteroot }}?from={{ new_from}}"><img src="/img/archive.gif" alt="Older topics" border="0" height="14" width="13">Older <u>t</u>opics</a>
		{% endif %}
		</div>
	</td>
</tr>
</tbody>
</table>
<hr>
<center>forum powered by <a href="http://blog.kowalczyk.info/software/fofou">fofou</a> 
<br><a href="http://blog.kowalczyk.info">Krzysztof Kowalczyk</a></center>
<br>

{% if analytics_code %}
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("{{ analytics_code }}");
pageTracker._initData();
pageTracker._trackPageview();
</script>
{% endif %}

</body>
</html>
